package by.exposit.domain;

import java.util.Date;


public class Request
{

    private Long requestId;


    private Project project;

    private Date initiationTime;

    private Date creationTime;

    private Long moneyNeeded;


    private Status status;

    private Long period;

    public Request()
    {}
    public Request(Project project, Long moneyNeeded,Status status, Long period)
        {
            this.project = project;
            this.creationTime = new Date();
            this.status = status;
            this.moneyNeeded = moneyNeeded;
            this.period = period;

        }

    public   Long getRequestId() {
        return requestId;
    }

    public Project getProject() {
        return project;
    }

    public Date getInitiationTime() // gets time when for project was given monie
    {
        return initiationTime;
    }

    public Date getCreationTime() // gets time when the request was created
    {
        return creationTime;
    }

    public Long getMoneyNeeded(){
        return moneyNeeded;
    }

    public Status getStatus(){
        return status;
    }

    public Long getPeriod() {
        return period;
    }

    public void setRequestId(Long requestId) {
        this.requestId = requestId;

    }

    public void setProject(Project project) {
        this.project = project;

    }

    public void setInitiationTime(Date initiationTime) {
        this.initiationTime = initiationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public void setMoneyNeeded(Long moneyNeeded) {
        this.moneyNeeded = moneyNeeded;
    }

    public void setStatus(Status status){
        this.status = status;
    }

    public void setPeriod(Long period) {
        this.period = period;
    }
}
